Numerial Analysis
Table of Contents
1. Approximation of Root
1.1. Newton's Method
- Newton-Raphson Method
The root \(x^{*}\) of the function \(f\) can be found by iterating with the following update rule: \[ x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}. \]
The initial value \(x_0\) needs to be at sensible location for this to converge. Different initial value may converge to different roots.
Similarly, the root of the derivative of a function can also be found. \[ x_{n+1} = x_n - \frac{f'(x_n)}{f''(x_n) }. \]
For multivariate function \(f\colon V \to W\): \[ x_{n+1} = x_n - J_f(x_n)^{-1}f(x_n) \] where \(J_f\) is the Jacobian
The critical points for multivariate functions, such as local extrema or constrained extrema, can be found like: \[ x_{n+1} = x_n - H_f(x_n)^{-1}J_f(x_n) \] where \(H_f\) is the Hessian.
2. Numerical Integration
2.1. Simpson's Rule
For \(f\in C^4[a, b]\), there exists \(\xi\in (a,b)\) such that \[ \int_a^bf(x) = \frac{b-a}{6} \]
3. Approximation of Fixed Point
- Method of computing fixed points of a function
- Finding the fixed point of \(f\) by repeatedly applying it.
- Note that it is not guaranteed to obtain the fixed point.
3.1. Attracting Fixed Points
Attracting fixed pint is the points in the neighborhood of the fixed points converges to the fixed point. It is a kind of attractor.
3.2. Examples
3.2.1. Newton's Method
3.2.2. Halley's Method
3.2.3. Runge-Kutta Methods
3.2.4. Picard's Method
- Picard Iteration, Picard Iterative Process
- This is based on the Picard-Lindelöf Theorem.
3.2.5. Cobweb Model
- In price theory
4. Numerical Solution to Ordinary Differential Equation
4.1. Euler Method
It is often numerically unstable, especially for stiff equations, meaning that it tends to diverge, gaining or losing fictitious energy.
4.1.1. First Order
- Forward Euler Method
\[ x_{i+1} = x_i + hf'(t_i, x_i) \]
4.1.2. Higher Order
4.1.3. Implicit Euler Method
- Backward Euler Method
\[ x_{i+1} = x_i + hf'(t_{i+1}, x_{i+1}) \]
4.2. Classic Runge-Kutta Method
- RK4
\[ x_{i+1} = x_i + \frac{h}{6}(k_1 + 2k_2 + 2k_3 + k_4)\\ t_{i+1} = t_i + h \] where
\begin{align*} k_1 &= f(t_i, x_i) \\ k_2 &= f\left(t_i + \frac{h}{2}, x_i + \frac{h}{2}k_1\right) \\ k_3 &= f\left(t_i + \frac{h}{2}, x_i + \frac{h}{2}k_2\right) \\ k_4 &= f(t_i + h, x_i + hk_3) \\ \end{align*}- It is averaging over the explicit Euler, implicit Euler, and other two, in order to reduce the error.
- It performs really well for extensive amount of time.
5. Numerical Solution to Paritial Differential Equation
5.1. Finite Difference Method
Numerical techniques for solving differential equations by approximating derivatives with finite difference.
6. Reference
- Newton's method - Wikipedia
- Newton's method in optimization - Wikipedia
- Square root algorithms - Wikipedia
- Why Runge-Kutta is SO Much Better Than Euler's Method #somepi - YouTube
- Euler method - Wikipedia
- Explicit and implicit methods - Wikipedia
- Runge–Kutta methods - Wikipedia
- Fixed-point iteration - Wikipedia
- Finite difference method - Wikipedia